package jwr;

import java.awt.BorderLayout;

import javax.swing.JButton;
import javax.swing.JFrame;

public class BoderLayoutEx extends JFrame{
	
	public BoderLayoutEx() {
		setTitle("연습");
		setDefaultCloseOperation(this.EXIT_ON_CLOSE);
		setVisible(true);
		setSize(400, 300);
		
		setLayout(new BorderLayout(5,5));
		
		add(new JButton("add"),BorderLayout.NORTH);
		add(new JButton("div"),BorderLayout.EAST);
		add(new JButton("Calculate"),BorderLayout.CENTER);
		add(new JButton("mul"),BorderLayout.WEST);
		add(new JButton("Sub"),BorderLayout.SOUTH);
	}

	public static void main(String[] args) {
		new BoderLayoutEx();
	}

}
